<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=0">
		<meta-equiv="Pragma"content="no-cache">
		<meta-equiv="Cache-Control"content="no-cache">
		<meta-equiv="Expires"content="0">
		<title>G4摇电视－{$info.reporter_name}</title>
		<link rel="stylesheet" href="{$_C.hy_path}css/reporter/pulie.css" />
		<link rel="stylesheet" href="{$_C.hy_path}css/reporter/reporter.css" />
	</head>
	<body>
		<div class="cheng">
			<div class="zhishi">
				<img src="{$_C.hy_path}images/reporter/dasna.png" />
				<img src="/ws{$info.gratuity_url}" />
			</div>
		</div>
		<div class="banner" id="content">
			<div class="userliu">
				<div class="toux"><img src="/ws{$info.reporter_url}"></div>
				<div class="nameping">
					<h2>记者：{$info.reporter_name}</h2>
					<span>{$info.createtime|date_format:'Y-m-d H:i:s'}</span>
				</div>
				<div class="g4lgo"><img src="{$_C.hy_path}images/reporter/g4 logo.png"></div>
			</div>
		</div>
		<div class="jianb"></div>
		<!-- <div class="video">
			<iframe frameborder="0" width="640" height="498" src="{$info.video_url}" allowfullscreen></iframe>
		</div> -->
		<div id="play"></div>
		<div class="htile"><h1>{$info.title}</h1></div>
		<div class="h3tile"><h2>{$info.new_desc}</h2></div>
		<div class="icon">
			<img src="{$_C.hy_path}images/reporter/Vector Smart Object.png"><p id="comment_num">{$info.comment_num}</p>
		    <div class="lick" data-nid="{$info.id}"><img src="{$_C.hy_path}images/reporter/{if $info.is_liked eq 1}Shapehong{else}Shape{/if}.png"><p>{$info.like_num}</p></div>
		</div>
		<div class="xian"></div>
		<div class="pingl">
			<div class="xians" id="xians"><span>精选评论</span></div>
			{foreach from=$info.comment_list item=comment}
			<div class="userliu">
				<div class="toux"><img src="{$comment.headimgurl}"></div>
				<div class="nameping">
					<h2>{$comment.nickname}</h2>
					<span>{$comment.comment}</span>
				</div>
			</div>
			{/foreach}
		</div>
		<div style="height:30px;"></div>
		<div class="dingbu">
			<img src="{$_C.hy_path}images/reporter/g4da icon.png">
			<a onClick="goDiv('content')" id="toTop"><img src="{$_C.hy_path}images/reporter/topshangicon.png"></a>
		</div>
		<div class="pingkuan">
			<textarea id="cmText" placeholder="写下你的精彩评论"></textarea>
			<div class="button" onclick="sendComment()"><img src="{$_C.hy_path}images/reporter/fason.PNG"></div>
		</div>
		<script type="text/javascript" src="{$_C.hy_path}js/jquery-1.10.2.min.js" ></script>
		<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
		<script>
		var hy_path = '{$_C.hy_path}',new_id = parseInt('{$info.id}');
		wx.config({
		    debug: false, 
		   appId: '{$jsdk.appId}',
				timestamp: {$jsdk.timestamp},
				nonceStr: '{$jsdk.nonceStr}',
				signature: '{$jsdk.signature}',
		    jsApiList: [
		      // 所有要调用的 API 都要加到这个列表中
			  'onMenuShareTimeline',
	      	  'onMenuShareAppMessage',

		    ]
		  });
		  wx.ready(function () {
			
			 wx.onMenuShareTimeline({
				    title: 'G4记者{$info.reporter_name}的主页',
				     link:'http://g4.airefp.com/ws/index.php?g=mobile&m=reporter&a=index&id={$info.reporter_id}',
				     imgUrl: 'http://g4cdn.airefp.com/ws{$info.reporter_url}',
				      trigger: function (res) {
				       
				      },
				      success: function (res) {
				      },
				      cancel: function (res) {
				       
				      },
				      fail: function (res) {
				        warn(JSON.stringify(res));
				      }
			    });
			    
				wx.onMenuShareAppMessage({
				    link:'http://g4.airefp.com/ws/index.php?g=mobile&m=reporter&a=index&id={$info.reporter_id}',
				     title: 'G4记者{$info.reporter_name}的主页',
				    desc: 'G4记者{$info.reporter_name}的主页',
				  	imgUrl: 'http://g4cdn.airefp.com/ws{$info.reporter_url}',
				    success: function () { 
				    },
				    cancel: function () { 
				        // 用户取消分享后执行的回调函数
				    }
				});
		  });
		</script>
		<script type="text/javascript" src="{$_C.hy_path}js/reporter/reporter.js" ></script>
		<script type="text/javascript" src="http://cdn.aodianyun.com/lss/player.js"></script>
		<script type="text/javascript">
		aodianPlayer({
		  container:'play',//播放器容器ID，必要参数
		  rtmpUrl:'rtmp://8742.lssplay.aodianyun.com/VideoOnair/stream',//控制台开通的APP rtmp地址，必要参数
		  hlsUrl:'http://8742.hlsplay.aodianyun.com/VideoOnair/stream.m3u8',//控制台开通的APP hls地址，必要参数
		  player:{
		    name:'lssplayer',//播放器名称，必要参数
		    /* 以下为可选参数*/
		    width: '720',//PC端浏览器，播放器宽度，可用数字、百分比等
		    height: '480',//PC端浏览器，播放器高度，可用数字、百分比等
		    html5Width: '100%',//手机端浏览器，播放器宽度，      可用数字、百分比等
		    html5Height: '100%',//手机端浏览器，播放器高度，可用数字、百分比等
		    autostart: true,//是否自动播放，默认为false
		    bufferlength: '1',//视频缓冲时间，默认为3秒，手机端不支持！
		    maxbufferlength: '2',//最大视频缓冲时间，默认为2秒，手机端不支持！
		    stretching: '2',//设置全屏模式,1代表按比例撑满至全屏,2代表铺满全屏,3代表视频原始大小,默认值为1
		    controlbardisplay: 'enable'//是否显示控制栏，值为：disable、enable默认为disable
		  }
		});
		/* 以下为LSS Player支持的事件 */
//		 	lssHandle.startPlay();
		/* lssHandle.pause();//暂停 */
		/* lssHandle.stopPlayer();//停止 */
		/* lssHandle.closeConnect();//断开连接 */
		/* lssHandle.setMute(true);//静音或恢复音量，参数为true|false */
		/* lssHandle.setVolume(volume);//设置音量，参数为0-100数字 */
		/* lssHandle.setFullScreenMode(1);//设置全屏模式,1代表按比例撑满至全屏,2代表铺满全屏,3代表视频原始大小,默认值为1,手机端不支持 */
		</script> 
	</body>
</html>